﻿using Microsoft.EntityFrameworkCore;
using Admin_jiaju.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;


namespace Admin_jiaju.EFCore
{
    public class AppDbContext : DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
        {

        }

        public  DbSet<Banner> Banner { get; set; }
        public  DbSet<Designer> Designer { get; set; }
        public  DbSet<HomeInfo> HomeInfo { get; set; }
        public  DbSet<Message> Message { get; set; }
        public  DbSet<News> News { get; set; }
        public  DbSet<NewsType> NewsType { get; set; }
        public  DbSet<PicTrue> PicTrue { get; set; }
        public  DbSet<Product> Product { get; set; }
        public  DbSet<ProductType> ProductType { get; set; }
        public  DbSet<Users> Users { get; set; }
        //public DbSet<Student> studnets { get; set; }
        //public DbSet<StuClass> stuClasses { get; set; }
        //protected override void OnModelCreating(ModelBuilder modelbuilder)
        //{
        //   modelbuilder.Seed();
        //}
    }
}
